feat: research workflows & rich search with user-selectable sources - #437
Open
sadiqabubakar826-del wants to merge 1 commit into
Open
Conversation
- Add ReportFormat, ResearchReportConfig, SourceStatus, ResearchReport
types to src/types/index.ts
- Add ResearchSource, ResearchPromptResult interfaces and
buildResearchPrompt() helper to src/lib/aiChatService.ts — builds
format-specific prompts (bullets/narrative/table/comparison) and
computes omitted source IDs
- Add ResearchWorkflowPanel component: source checkbox list with
select-all/none, 4 format radio options, Generate Report button,
SSE-streaming report via AiMarkdown, omitted/failed source footer
- Update SearchResults.tsx: RESEARCH button alongside SUMMARIZE,
AiMode state (none/summarize/research), result cards get
id=result-card-{n} for citation scrolling, state reset on
query/results change
- Update mcp-server/index.ts ai_summarize tool: optional format param
(bullets|narrative|table|comparison) with format-specific directives,
backward-compatible default behaviour
- Add tests: buildResearchPrompt (all 4 formats, omittedIds, prompt
content), ResearchWorkflowPanel (source selection, format, generate,
error, reset), SearchResults (legacy summarize + research mode +
citation card IDs)
|
@sadiqabubakar826-del is attempting to deploy a commit to the Emmanuel's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@sadiqabubakar826-del Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Research Workflows & Rich Search
Replaces the fixed "first 5 results" summarize button with a full research workflow that lets
users control the evidence set and output format before invoking AI.
What changed
New: ResearchWorkflowPanel component
citations that scroll to the source card
Updated: SearchResults.tsx
when the query or results change
Updated: aiChatService.ts
selected set, for recording in the report metadata
Updated: mcp-server/index.ts — ai_summarize tool
New types in src/types/index.ts
Tests
omitted-source footer, state reset on query change
card IDs
What was tested
Notes
workflow
closes #307